<?php
$siteConfig=spClass(site_config);
if($_REQUEST['act']&&$_REQUEST['act']=='save'){
$saveMapArr=array('sitename'=>'name','sitetitle'=>'title','meta_k_index'=>'index_meta_key','meta_d_index'=>'index_meta_value','meta_k_all'=>'all_meta_key','meta_d_all'=>'all_meta_value','visit'=>'statistics','copyright'=>'copyrights','Tel'=>'company_tel','Icp'=>'Icp');
foreach($saveMapArr as $id=>$v){
$siteConfig->update($conditions=array('desc_en'=>$v),$row=array('value'=>$this->spArgs($id)));
	}
	$this->success("恭喜，操作成功");
	}else{
$datil=$siteConfig->findAll();
//dump($datil);
$this->datil=$datil;	
$this->display('management/site.html');		
	}
